#include <gnome.h>

void cb_request(gchar *string,gpointer data){
	if(!string)
		g_print("opertationcanceled\n");
	else
		g_print("password is %s\n",string);
	gtk_main_quit();
}

int main(int argc,char **argv){
	gnome_init("","",argc,argv);
	GtkWidget *dialog = gnome_request_dialog(TRUE,"Input Password","verymimi",
		8,(GnomeStringCallback)cb_request,NULL,NULL);
	gtk_window_set_modal(GTK_WINDOW(dialog),TRUE);
	gtk_main();
	return 0;
}